package com.house.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.house.biz.ComplaintBiz;
import com.house.dao.ComplaintDao;
import com.house.entity.Complaint;
@Service("complaintBiz")
public class ComplaintBizImpl implements ComplaintBiz{
	@Autowired
	private ComplaintDao complaintDao;
	
	
	public List<Complaint> getAll(String type, int starIndex, int pagesize) {
		// TODO Auto-generated method stub
		return complaintDao.getAll(type, starIndex, pagesize);
	}
	
	public int getCount(String type) {
		// TODO Auto-generated method stub
		return complaintDao.getCount(type);
	}
	
	public Complaint getById(int id) {
		// TODO Auto-generated method stub
		return complaintDao.getById(id);
	}

}
